package com.fqgj.sentry.statistics;

import com.fqgj.report.statistics.dao.BiAuditStatDao;
import com.fqgj.report.statistics.entity.BiAuditStatisticEntity;
import com.fqgj.sentry.statistics.service.OverdueStatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by ykpbean kangping.ying@yuntu-inc.com
 *
 * @description
 * @create 2017-10-18 下午4:41
 */


@Service
public class OverdueStatisticsServiceImpl implements OverdueStatisticsService {

    @Autowired
    private BiAuditStatDao biAuditStatDao;

    @Override
    public List<BiAuditStatisticEntity> selectRiskAuditStatistic(String startDate, String endDate, Long eventId,
                                                                 String executorType, String version,
                                                                 String source, Integer borrowType) {

        return biAuditStatDao.selectRiskAuditStatistic(startDate, endDate, eventId,
                executorType, version,
                source, borrowType);
    }

    @Override
    public Long selectApplyCnt(String startDate, String endDate, Long eventId,
                               String executorType, String version,
                               String source, Integer borrowType, Integer resultType) {
        return biAuditStatDao.selectApplyCnt(startDate, endDate, eventId,
                executorType, version, source, borrowType, resultType);
    }

}
